package com.hs.shirodemo2.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUser {

    private Integer id;
    private String username;
    private String img;
    private String mobile;
    private String nickname;
    private String email;
    private String userpwd;
    private String salt;
    private String status;
    private String del;

    /*
    * 添加一对多关联属性，一个用户可以关联多个角色
    * 只关联用户对应的角色编号，原因是修改的时候，只需要id进行判断，选中即可
    * */
    List<Integer> roleIdList;
}